home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Just Call Me Internet
/
Just Call Me Internet.iso
/
prog
/
atari
/
c
/
stut_src
/
usltp.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-10-14
|
1KB
|
64 lines
/*
* Universal Serial Link Transfer Protocol
*
* Types, Membres et constantes publics
*
* 12.04.95: Created
*/
#ifndef _USLTP_H_
#define _USLTP_H_
#include "GEMWDEF.H"
/*
* Etats d'une session USLTP
*/
typedef
enum
{
USTATE_INIT,
USTATE_WAIT_LOAD,
USTATE_SYNC,
USTATE_CLASS,
USTATE_FILE,
USTATE_SIZE,
USTATE_DATA,
USTATE_EOF
}
USLTP_STATE;
/*
* Rponses de USLTP_Session_Process:
*/
typedef
enum
{
UPROCESS_CONTINUE,
UPROCESS_END,
UPROCESS_LOGICAL_HUP, /* Appui sur Cnx/fin */
UPROCESS_PHYSICAL_HUP, /* Dconnexion(Double Appui sur Cnx/fin) */
}
USLTP_PROCESS;
/*
* Block de controle USLTP:
*/
typedef
struct
{
USLTP_STATE State; /* Etat courant de la session */
int n_InDev; /* device d'entre */
int n_OutDev; /* device de sotie */
void * pVoie; /* Voie courante (double emploi avec n_Indev et n_Outdev) */
char * psz_FileName; /* Nom du fichier envoyer */
WIPARAMS * pWiParams; /* Fenetre de log */
TEXTLINE * pRcvAcqBuf; /* Buffer de rception des acquitements */
clock_t clock_timeout; /* Heure du prochain timeout */
}
USLTP_CTRLBLK;
#endif